import { RouteRecordRaw, createRouter, createWebHashHistory } from "vue-router";
import HomePage from "@/views/home/home.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: { path: "/home" },
  },
  {
    path: "/home",
    name: "Home",
    component: HomePage,
    meta: {
      noNeedLogin: false,
      keepAlive: false,
      title: "首页",
    },
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;